import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/user/init'
import role from '@/store/role/init'
import order from '@/store/order/init'
import good from '@/store/goods/init'

import init from '@/store/public/init'
import categories from '@/store/categories/init'

Vue.use(Vuex)

export default new Vuex.Store({
  ...init,
  modules: {
    user,
    sfd: {},
    role,
    order,
    good,
    categories
  }
})
